package com.hzzy.IDao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.hzzy.bean.HzSemester;
import com.hzzy.bean.HzSemesterExample;

public interface HzSemesterMapper {
    int countByExample(HzSemesterExample example);

    int deleteByExample(HzSemesterExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(HzSemester record);

    int insertSelective(HzSemester record);

    List<HzSemester> selectByExample(HzSemesterExample example);

    HzSemester selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") HzSemester record, @Param("example") HzSemesterExample example);

    int updateByExample(@Param("record") HzSemester record, @Param("example") HzSemesterExample example);

    int updateByPrimaryKeySelective(HzSemester record);

    int updateByPrimaryKey(HzSemester record);
    
    /*自定义*/
    /**
     * 根据条件 查询
     * @param conditions
     * @return
     */
    List<HzSemester> selectByConditions(Map<String, Object> conditions);
    
    /**
     * 根据老师Id
     * @return
     */
    List<HzSemester> selectByClassNoFinish(String teacherId);
    
    /**
     * 更具学期id查询学期
     */
    HzSemester selectSemesterBySemesterId(Map<String, Object> param);
    
    /**
     * 查询所有学期
     */
    List<HzSemester> selectAllSemester();
}